﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Light: StateForge::Examples::Light::LightTestRhino Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                Light: StateForge::Examples::Light::LightTestRhino Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_state_forge.html">StateForge</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples.html">Examples</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples_1_1_light.html">Light</a>      </li>
      <li class="navelem"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html">LightTestRhino</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">StateForge::Examples::Light::LightTestRhino Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="StateForge::Examples::Light::LightTestRhino" -->
<p><a href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a320da2cb25be6b5d0c72907f0d6e406a">Setup</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3ac4005fa2cf7d1d66f7e417bcaf57f1">TearDown</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ad8d26589bb776a8601c521f1afb205cd">On</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a157b72924e5b60d1667dccccb88ab02b">Off</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a57b79c77861926e32ff53c5303b76d4e">OnOff</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a6412e4e6f22534cc652c4df3ff1c7263">OnOn</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LightContext&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#aff114fee47fd1fa79c4c4c0d69d1b0b8">lightContext</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">MockRepository&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_state_forge_1_1_examples_1_1_light_1_1_i_light_actuator.html">ILightActuator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a8d0466d85d600192028c046111bf3603">lightActuator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IObserver&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a> = &quot;LightContext&quot;</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00011">11</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a157b72924e5b60d1667dccccb88ab02b"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::Off" ref="a157b72924e5b60d1667dccccb88ab02b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Light::LightTestRhino::Off </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00059">59</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Record())
            {
                <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Ordered())
                {
                }
            }

            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Playback())
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#aff114fee47fd1fa79c4c4c0d69d1b0b8">lightContext</a>.EvOff();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ad8d26589bb776a8601c521f1afb205cd"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::On" ref="ad8d26589bb776a8601c521f1afb205cd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Light::LightTestRhino::On </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00037">37</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Record())
            {
                <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Ordered())
                {
                    <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a> = <span class="stringliteral">&quot;Off&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a> = <span class="stringliteral">&quot;On&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a> = <span class="stringliteral">&quot;EvOn&quot;</span>;
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a8d0466d85d600192028c046111bf3603">lightActuator</a>.DoOn());
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a>));
                }
            }

            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Playback())
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#aff114fee47fd1fa79c4c4c0d69d1b0b8">lightContext</a>.EvOn();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a57b79c77861926e32ff53c5303b76d4e"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::OnOff" ref="a57b79c77861926e32ff53c5303b76d4e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Light::LightTestRhino::OnOff </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00074">74</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Record())
            {
                <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Ordered())
                {
                    <span class="comment">// lightContext.EvOn();</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a> = <span class="stringliteral">&quot;Off&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a> = <span class="stringliteral">&quot;On&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a> = <span class="stringliteral">&quot;EvOn&quot;</span>;
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a8d0466d85d600192028c046111bf3603">lightActuator</a>.DoOn());
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a>));

                    <span class="comment">// lightContext.EvOff();</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a> = <span class="stringliteral">&quot;On&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a> = <span class="stringliteral">&quot;Off&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a> = <span class="stringliteral">&quot;EvOff&quot;</span>;
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a8d0466d85d600192028c046111bf3603">lightActuator</a>.DoOff());
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a>));
                }
            }

            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Playback())
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#aff114fee47fd1fa79c4c4c0d69d1b0b8">lightContext</a>.EvOn();
                <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#aff114fee47fd1fa79c4c4c0d69d1b0b8">lightContext</a>.EvOff();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a6412e4e6f22534cc652c4df3ff1c7263"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::OnOn" ref="a6412e4e6f22534cc652c4df3ff1c7263" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Light::LightTestRhino::OnOn </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00106">106</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Record())
            {
                <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Ordered())
                {
                    <span class="comment">// lightContext.EvOn();</span>
                    <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a> = <span class="stringliteral">&quot;Off&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a> = <span class="stringliteral">&quot;On&quot;</span>; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a> = <span class="stringliteral">&quot;EvOn&quot;</span>;
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnTransitionBegin(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnExit(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnEntry(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>));
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a8d0466d85d600192028c046111bf3603">lightActuator</a>.DoOn());
                    Expect.Call(() =&gt; <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>.OnTransitionEnd(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">contextName</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">current</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">next</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">transition</a>));
                }
            }

            <span class="keyword">using</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.Playback())
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#aff114fee47fd1fa79c4c4c0d69d1b0b8">lightContext</a>.EvOn();
                <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#aff114fee47fd1fa79c4c4c0d69d1b0b8">lightContext</a>.EvOn();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a320da2cb25be6b5d0c72907f0d6e406a"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::Setup" ref="a320da2cb25be6b5d0c72907f0d6e406a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Light::LightTestRhino::Setup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00021">21</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a> = <span class="keyword">new</span> MockRepository();
            <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a8d0466d85d600192028c046111bf3603">lightActuator</a> = <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.StrictMock&lt;ILightActuator&gt;();
            <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a> = <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">repository</a>.StrictMock&lt;IObserver&gt;();
            <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#aff114fee47fd1fa79c4c4c0d69d1b0b8">lightContext</a> = <span class="keyword">new</span> LightContext(<a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a8d0466d85d600192028c046111bf3603">lightActuator</a>);
            lightContext.Observer = <a class="code" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">observer</a>;
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a3ac4005fa2cf7d1d66f7e417bcaf57f1"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::TearDown" ref="a3ac4005fa2cf7d1d66f7e417bcaf57f1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Light::LightTestRhino::TearDown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00031">31</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {

        }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab15e926e4bc44562b7691d7abd398d58"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::contextName" ref="ab15e926e4bc44562b7691d7abd398d58" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#ab15e926e4bc44562b7691d7abd398d58">StateForge::Examples::Light::LightTestRhino::contextName</a> = &quot;LightContext&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00017">17</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a58a9c48371188d812812d5d66062e467"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::current" ref="a58a9c48371188d812812d5d66062e467" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a58a9c48371188d812812d5d66062e467">StateForge::Examples::Light::LightTestRhino::current</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00018">18</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a8d0466d85d600192028c046111bf3603"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::lightActuator" ref="a8d0466d85d600192028c046111bf3603" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interface_state_forge_1_1_examples_1_1_light_1_1_i_light_actuator.html">ILightActuator</a> <a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a8d0466d85d600192028c046111bf3603">StateForge::Examples::Light::LightTestRhino::lightActuator</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00015">15</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aff114fee47fd1fa79c4c4c0d69d1b0b8"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::lightContext" ref="aff114fee47fd1fa79c4c4c0d69d1b0b8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LightContext <a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#aff114fee47fd1fa79c4c4c0d69d1b0b8">StateForge::Examples::Light::LightTestRhino::lightContext</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00013">13</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a3d5ffc27b7c12f48a1c098dee844db92"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::next" ref="a3d5ffc27b7c12f48a1c098dee844db92" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a3d5ffc27b7c12f48a1c098dee844db92">StateForge::Examples::Light::LightTestRhino::next</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00018">18</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a351c95887a4c31770bd2487fa47f2621"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::observer" ref="a351c95887a4c31770bd2487fa47f2621" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IObserver <a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a351c95887a4c31770bd2487fa47f2621">StateForge::Examples::Light::LightTestRhino::observer</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00016">16</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a7b8b3476d19164520bff70c455807107"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::repository" ref="a7b8b3476d19164520bff70c455807107" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MockRepository <a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#a7b8b3476d19164520bff70c455807107">StateForge::Examples::Light::LightTestRhino::repository</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00014">14</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af85d0738d64fab59297b6ffc94baa151"></a><!-- doxytag: member="StateForge::Examples::Light::LightTestRhino::transition" ref="af85d0738d64fab59297b6ffc94baa151" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_light_1_1_light_test_rhino.html#af85d0738d64fab59297b6ffc94baa151">StateForge::Examples::Light::LightTestRhino::transition</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_test_rhino_8cs_source.html#l00018">18</a> of file <a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Test/LightTestRhino/<a class="el" href="_light_test_rhino_8cs_source.html">LightTestRhino.cs</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
